package com.sky.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {

   void saveWithFlavor(DishDTO dishDTO);

   PageResult page(DishPageQueryDTO dishPageQueryDTO);


   void deleteByIds(List<Long> ids);

   DishVO getById(Long id);

   void updateById(DishDTO dishDTO);


   List<Dish> list(Long id);


   void startOrStop(Integer status,Long id);

   /**
    * 条件查询菜品和口味
    * @param dish
    * @return
    */
   List<DishVO> listWithFlavor(Dish dish);

}
